﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LYZJ.UserLimitMVC.Model
{
    public class Configuration_ImportSort : IComparer<Configuration_ImportSort>, IComparable<Configuration_ImportSort>
    {
        /// <summary>
        /// 
        /// </summary>
        public string TableName { get; set; }

        public string sort { get; set; }


        public int Compare(Configuration_ImportSort s1, Configuration_ImportSort s2)
        {
            if (int.Parse(s1.sort) > int.Parse(s2.sort))
            { return 1; }
            else if (int.Parse(s1.sort) < int.Parse(s2.sort))
            { return -1; }
            else { return 0; }
        }

        public int CompareTo(Configuration_ImportSort s)
        {
            return Compare(this, s);
        }


    }
}
